package com.tomcov.client.view;

import com.extjs.gxt.ui.client.widget.form.AdapterField;
import com.extjs.gxt.ui.client.widget.form.DateField;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RadioButton;
import com.google.gwt.user.client.ui.SuggestBox;
import com.google.gwt.user.client.ui.VerticalPanel;

public interface MapView extends IsWidget {

	public RadioButton getDriverRadioButton();
	public SuggestBox getFromAddress();
	public SuggestBox getToAddress();
	public void setToAddress(String text);
	public void setFromAddress(String text);
	public VerticalPanel getPossibleUserPanel();
	public int getDetour();
	public Button getAddJourneyButton();
	public Button getRoadButton();
	public MapWidget getMap();
	public VerticalPanel getDirectionsPanel();
	public RadioButton getPassengerRadioButton();

	public AdapterField getOriginField();
	public AdapterField getDestinationField();
	
	
	public TextField<String> getArrivalTime();
	public TextField<String> getDeptime2();
	public TextField<String> getDeptime1();
	public DateField getDate();
	
	
	public Label getDistance();
	public Label getDuration();
	
	void setPresenter(Presenter presenter);
    public interface Presenter {
        void goTo(Place place);
    }
	

}
